import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/index.vue'
import Overview_left from '../views/Overview/Overview_left.vue'
import Overview_right from '../views/Overview/Overview_right.vue'
import Data_left from '../views/Data/Data_left.vue'
import Data_right from '../views/Data/Data_right.vue'
import ThreeD_left from '../views/ThreeD/ThreeD_left.vue'
import ThreeD_right from '../views/ThreeD/ThreeD_right.vue'
import TimeSelect from '../views/TimeSelect/TimeSelect.vue'
import Car_right from '../views/Car/Car_right.vue'
import Car_left from '../views/Car/Car_left.vue'
import Energy_left from '../views/Energy/Energy_left.vue'
import Energy_right from '../views/Energy/Energy_right.vue'
import Remind_left from '../views/Remind/Remind_left.vue'
import Remind_right from '../views/Remind/Remind_right.vue'
import Safe_left from '../views/Safe/Safe_left.vue'
import Safe_right from '../views/Safe/Safe_right.vue'
import SafeX_left from '../views/SafeX/SafeX_left.vue'
import SafeX_right from '../views/SafeX/SafeX_right.vue'


Vue.use(VueRouter)

const routes = [
  {
    title:"时间组件",
    path: '/TimeSelect',
    name: 'TimeSelect',
    component: TimeSelect
  },
  {
    title:"主页",
    path: '/',
    name: 'Index',
    component: Index
  }, {
    title:"人员定位-左",
    path: '/Overview_left',
    name: 'Overview_left',
    component: Overview_left
  }, {
    title:"人员定位-右",
    path: '/Overview_right',
    name: 'Overview_right',
    component: Overview_right
  }, {
    title:"总览-左",
    path: '/Data_left',
    name: 'Data_left',
    component: Data_left
  }, {
    title:"总览-右",
    path: '/Data_right',
    name: 'Data_right',
    component: Data_right
  }, {
    title:"3D综合-左",
    path: '/ThreeD_left',
    name: 'ThreeD_left',
    component: ThreeD_left
  }, {
    title:"3D综合-右",
    path: '/ThreeD_right',
    name: 'ThreeD_right',
    component: ThreeD_right
  }, {
    title:"车辆管理-右",
    path: '/Car_right',
    name: 'Car_right',
    component: Car_right
  }, {
    title:"车辆管理-左",
    path: '/Car_left',
    name: 'Car_left',
    component: Car_left
  }, {
    title:"能源管理-左",
    path: '/Energy_left',
    name: 'Energy_left',
    component: Energy_left
  }, {
    title:"能源管理-右",
    path: '/Energy_right',
    name: 'Energy_right',
    component: Energy_right
  }, {
    title:"报警管理-左",
    path: '/Remind_left',
    name: 'Remind_left',
    component: Remind_left
  }, {
    title:"报警管理-右",
    path: '/Remind_right',
    name: 'Remind_right',
    component: Remind_right
  }, {
    title:"安全管理-左",
    path: '/Safe_left',
    name: 'Safe_left',
    component: Safe_left
  }, {
    title:"安全管理-右",
    path: '/Safe_right',
    name: 'Safe_right',
    component: Safe_right
  }, {
    title:"消防管理-左",
    path: '/SafeX_left',
    name: 'SafeX_left',
    component: SafeX_left
  }, {
    title:"消防管理-右",
    path: '/SafeX_right',
    name: 'SafeX_right',
    component: SafeX_right
  },
]

const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
